<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script src='assets/js/socket.io.min.js'></script>
    <script src="isea/index.js"></script>
</head>
<body>

<button id="hel">dianwo</button>

<script>

    isea.loader.use("socket",function () {
        var io = new isea.socket({
            server: 'http://127.0.0.1:1992',
            id: "lin2"
        });
        document.getElementById("hel").onclick = function () {
            io.emit("hello world");
        };

    });
</script>
</body>
</html>